package com.yiwyn;

import com.yiwyn.inter.BaseHandler;

public class Main {

    public static void main(String[] args) {
        Handle2 handle2 = new Handle2();
        getClass(handle2);


    }


    public static void getClass(BaseHandler handler) {
        Class<? extends BaseHandler> aClass = handler.getClass();

        if (aClass == Handle1.class) {
            System.out.println("handle1");
        }

        if (aClass == Handle2.class) {
            System.out.println("handle2");
        }

    }


}
